<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button id="test">Layer 学习 alert</button><br/>
		<button id="test1">Layer 学习 confirm</button><br/>
		
		<script src="../js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<script src="../layer/layer.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$('#test1').on('click', function() {
				layer.confirm(
					"您确认要删除么?",
					{icon : 3, title : "提示"},
					function(index) {
						layer.close(index);
					}
				);
			});
			
			
			$('#test').on('click', function() {
				// layer.alert("只是简单的提示");
				layer.alert(
					"这是一个严重的警告",
					{icon : 2},
					function(index) {
						console.log(index);
						layer.close(index);
					}
				);
			});
			
			
		</script>
	</body>
</html>
